<template>
  <div name="leftad">
    <div class="left_ad">
      <div
        :class="[leftDate.length==1?'adimg_box1':'adimg_box2','adimg_box']"
        v-for="(item,index) in leftDate"
        :key="index"
      >
        <router-link to="/comdetail">
          <img class="ad_img" :src="item" alt />
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "leftad",
  data() {
    return {
      // leftadlist: [],
    };
  },
  //   自定义组件属性
  props: {
    leftDate: {
      type: Array,
      required: true
    },
  }
};
</script>

<style lang="scss" scoped>
@import "./LeftAd.scss";
</style>